package yf.mall.enums;

import lombok.Getter;

import java.util.Arrays;


/**
 * 
 * 
 * @date Sun Sep 29 10:46:03 CST 2019
 */
@Getter
public enum LevelTypeEnum {


    PUB(0, "开放" ),


    PRI(1, "内部" );


    int index;
    String value;

    LevelTypeEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }



    public static String indexOf(int idx) {
        return LevelTypeEnum.values()[idx].getValue();
    }

}
